﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D97 RID: 3479
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class QuestRecord : IMessage<QuestRecord>, IMessage, IEquatable<QuestRecord>, IDeepCloneable<QuestRecord>, IBufferMessage
	{
		// Token: 0x17002C3D RID: 11325
		// (get) Token: 0x06009C42 RID: 40002 RVA: 0x001A279C File Offset: 0x001A099C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<QuestRecord> Parser
		{
			get
			{
				return QuestRecord._parser;
			}
		}

		// Token: 0x17002C3E RID: 11326
		// (get) Token: 0x06009C43 RID: 40003 RVA: 0x001A27A3 File Offset: 0x001A09A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return QuestRecordReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002C3F RID: 11327
		// (get) Token: 0x06009C44 RID: 40004 RVA: 0x001A27B5 File Offset: 0x001A09B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return QuestRecord.Descriptor;
			}
		}

		// Token: 0x06009C45 RID: 40005 RVA: 0x001A27BC File Offset: 0x001A09BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuestRecord()
		{
		}

		// Token: 0x06009C46 RID: 40006 RVA: 0x001A27C4 File Offset: 0x001A09C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuestRecord(QuestRecord other) : this()
		{
			this.progress_ = other.progress_;
			this.aOMFDNHANFA_ = other.aOMFDNHANFA_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009C47 RID: 40007 RVA: 0x001A27F5 File Offset: 0x001A09F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuestRecord Clone()
		{
			return new QuestRecord(this);
		}

		// Token: 0x17002C40 RID: 11328
		// (get) Token: 0x06009C48 RID: 40008 RVA: 0x001A27FD File Offset: 0x001A09FD
		// (set) Token: 0x06009C49 RID: 40009 RVA: 0x001A2805 File Offset: 0x001A0A05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Progress
		{
			get
			{
				return this.progress_;
			}
			set
			{
				this.progress_ = value;
			}
		}

		// Token: 0x17002C41 RID: 11329
		// (get) Token: 0x06009C4A RID: 40010 RVA: 0x001A280E File Offset: 0x001A0A0E
		// (set) Token: 0x06009C4B RID: 40011 RVA: 0x001A2816 File Offset: 0x001A0A16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AOMFDNHANFA
		{
			get
			{
				return this.aOMFDNHANFA_;
			}
			set
			{
				this.aOMFDNHANFA_ = value;
			}
		}

		// Token: 0x06009C4C RID: 40012 RVA: 0x001A281F File Offset: 0x001A0A1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as QuestRecord);
		}

		// Token: 0x06009C4D RID: 40013 RVA: 0x001A282D File Offset: 0x001A0A2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(QuestRecord other)
		{
			return other != null && (other == this || (this.Progress == other.Progress && this.AOMFDNHANFA == other.AOMFDNHANFA && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009C4E RID: 40014 RVA: 0x001A286C File Offset: 0x001A0A6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Progress != 0U)
			{
				num ^= this.Progress.GetHashCode();
			}
			if (this.AOMFDNHANFA != 0U)
			{
				num ^= this.AOMFDNHANFA.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009C4F RID: 40015 RVA: 0x001A28C4 File Offset: 0x001A0AC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009C50 RID: 40016 RVA: 0x001A28CC File Offset: 0x001A0ACC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009C51 RID: 40017 RVA: 0x001A28D8 File Offset: 0x001A0AD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AOMFDNHANFA != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.AOMFDNHANFA);
			}
			if (this.Progress != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Progress);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009C52 RID: 40018 RVA: 0x001A2934 File Offset: 0x001A0B34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Progress != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Progress);
			}
			if (this.AOMFDNHANFA != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AOMFDNHANFA);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009C53 RID: 40019 RVA: 0x001A298C File Offset: 0x001A0B8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(QuestRecord other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Progress != 0U)
			{
				this.Progress = other.Progress;
			}
			if (other.AOMFDNHANFA != 0U)
			{
				this.AOMFDNHANFA = other.AOMFDNHANFA;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009C54 RID: 40020 RVA: 0x001A29DC File Offset: 0x001A0BDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009C55 RID: 40021 RVA: 0x001A29E8 File Offset: 0x001A0BE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Progress = input.ReadUInt32();
					}
				}
				else
				{
					this.AOMFDNHANFA = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003C60 RID: 15456
		private static readonly MessageParser<QuestRecord> _parser = new MessageParser<QuestRecord>(() => new QuestRecord());

		// Token: 0x04003C61 RID: 15457
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003C62 RID: 15458
		public const int ProgressFieldNumber = 12;

		// Token: 0x04003C63 RID: 15459
		private uint progress_;

		// Token: 0x04003C64 RID: 15460
		public const int AOMFDNHANFAFieldNumber = 7;

		// Token: 0x04003C65 RID: 15461
		private uint aOMFDNHANFA_;
	}
}
